package com.example.demo.zabbix.request.builder.host;

import com.example.demo.zabbix.request.BaseRequest;
import com.example.demo.zabbix.request.builder.request.CreateRequestBuilder;

import java.util.List;
import java.util.Map;

public class HostInterfaceMassAddRequestBuilder extends CreateRequestBuilder {
    private List<Map<String,Object>> hosts;
    private List<Map<String,Object>> interfaces;
    public HostInterfaceMassAddRequestBuilder(String auth) {
        super("hostinterface.massadd", auth);
    }

    public HostInterfaceMassAddRequestBuilder(Long id, String auth) {
        super("hostinterface.massadd", id, auth);
    }

    public List<Map<String, Object>> getHosts() {
        return hosts;
    }

    public HostInterfaceMassAddRequestBuilder setHosts(List<Map<String, Object>> hosts) {
        this.hosts = hosts;
        return this;
    }

    public List<Map<String, Object>> getInterfaces() {
        return interfaces;
    }

    public HostInterfaceMassAddRequestBuilder setInterfaces(List<Map<String, Object>> interfaces) {
        this.interfaces = interfaces;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("hosts",hosts);
        baseRequest.getParams().put("interfaces",interfaces);
        return baseRequest;
    }
}
